package cn.ze.yygh.msm;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.mail.SimpleMailMessage;
import org.springframework.mail.javamail.JavaMailSenderImpl;


@EnableDiscoveryClient
@ComponentScan(basePackages = {"cn.ze"})
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
public class ServiceMsmApplication {



    public static void main(String[] args) {
        SpringApplication.run(ServiceMsmApplication.class,args);


        //win 10 bug  没有25端口
       /* JavaMailSenderImpl mailSender = new JavaMailSenderImpl();
        String code = "1234";
        SimpleMailMessage message = new SimpleMailMessage();
        message.setSubject("注册验证码");
        message.setText("验证码为"+code);
        message.setFrom("1914088101@qq.com");
        mailSender.send(message);
*/
    }

}
